import request from "@/utils/request";

export let getData = async () => {
  return request.post("/api/1.0/gov/statistics/reportForm/homepage/orderinfo", {
    token: localStorage.getItem("token")
  });
};

export let getDataInvolve = async () => {
  return request.post("/api/1.0/gov/statistics/reportForm/homepage/myinfo", {
    token: localStorage.getItem("token")
  });
};

export let getDataInhand = async () => {
  return request.post("/api/1.0/gov/statistics/reportForm/homepage/handorder", {
    token: localStorage.getItem("token"),
    pageCurrent: "1",
    pageLimit: "5"
  });
};

export let getDataOutput = async () => {
  return request.post(
    "/api/1.0/gov/statistics/reportForm/homepage/deliveryorder",
    {
      token: localStorage.getItem("token"),
      pageCurrent: "1",
      pageLimit: "5"
    }
  );
};

export let gattData = async () => {
  return request.post("/api/1.0/gov/statistics/reportForm/homepage/orderinfo", {
    token: localStorage.getItem("token")
  });
};

export let gattDataStack = async () => {
  return request.post(
    "/api/1.0/gov/statistics/reportForm/exportorder/num/tendency",
    {
      token: localStorage.getItem("token")
    }
  );
};

export let gattDataDiscount = async () => {
  return request.post(
    "/api/1.0/gov/statistics/reportForm/exportorder/future/deliverOrder/info",
    {
      token: localStorage.getItem("token")
    }
  );
};

export let areaData = async () => {
  return request.post(
    "/api/1.0/gov/statistics/reportForm/areacompany/newactive/company",
    {
      token: localStorage.getItem("token")
    }
  );
};

export let areaDataStack = async () => {
  return request.post(
    "/api/1.0/gov/statistics/reportForm//areacompany/active/decalre/daynum",
    {
      token: localStorage.getItem("token")
    }
  );
};

export let areaDataDeclare = async () => {
  return request.post(
    "/api/1.0/gov/statistics/reportForm/areacompany/newdeclare/company",
    {
      token: localStorage.getItem("token")
    }
  );
};

export let gattOrderinfoList = async () => {
  return request.post(
    "/api/1.0/gov/statistics/reportForm/exportorder/subdepartment/orderinfo",
    {
      token: localStorage.getItem("token")
    }
  );
};

export let traceData = async () => {
  return request.post(
    "/api/1.0/gov/statistics/reportForm/tradearea/homepage/numinfo",
    {
      token: localStorage.getItem("token")
    }
  );
};

export let traceDataNut = async () => {
  return request.post(
    "/api/1.0/gov/statistics/reportForm/tradearea/countrynum/top5",
    {
      token: localStorage.getItem("token")
    }
  );
};

export let traceDataBasic = async () => {
  return request.post(
    "/api/1.0/gov/statistics/reportForm/tradearea/targetCountry/rate",
    {
      token: localStorage.getItem("token")
    }
  );
};
export let traceDataBig = async () => {
  return request.post(
    "/api/1.0/gov/statistics/reportForm/tradearea/exportOrder/country/top5/bigpicture",
    {
      token: localStorage.getItem("token")
    }
  );
};

export let traceDataLine = async () => {
  return request.post(
    "/api/1.0/gov/statistics/reportForm/tradearea/exportOrder/country/tendency",
    {
      token: localStorage.getItem("token")
    }
  );
};

export let tradeData = async () => {
  return request.post(
    "/api/1.0/gov/statistics/reportForm/americanInfo/homepage/number",
    {
      token: localStorage.getItem("token")
    }
  );
};

export let tradeBarData = async () => {
  return request.post(
    "/api/1.0/gov/statistics/reportForm/americanInfo/order/total/rank",
    {
      token: localStorage.getItem("token")
    }
  );
};
export let tradeSimpleData = async () => {
  return request.post(
    "/api/1.0/gov/statistics/reportForm/americanInfo/orderStruct/analy",
    {
      token: localStorage.getItem("token")
    }
  );
};

export let tradebigData = async () => {
  return request.post(
    "/api/1.0/gov/statistics/reportForm/americanInfo/analy/subdepartment",
    {
      token: localStorage.getItem("token")
    }
  );
};
